<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<c:if test="${not empty errorMessage}">
  <h2 class=error>${errorMessage}</h2>
</c:if>
<form action="${actionURL}" method="post">
 
<h1>Warenkorb Liste</h1>

<table>
  <caption>Liste der Produkte (${numberOfBestellungen})</caption>
  <thead>
    <tr>
   	  <th>ProduktId</th>
   	  <th>Menge</th>	
    </tr>
  </thead>
  <tbody>
  
    <c:forEach var="bestellungen" items="${bestellungen}">
    <tr>  
      <td>${bestellungen.produktId}</td>
      <td>${bestellungen.menge}</td>

    </tr>
    </c:forEach>
    <tr>
	        <td colspan="2" align="right"><input type="submit" name="submit" value="Bestellung durchf&uuml;hren"/>
	        <td  colspan="2" align="right"><input type="submit" name="back" value="zur&uuml;ck"/>
	        <td  colspan="2" align="right"><input type="submit" name="cancel" value="Bestellung abbrechen"/>
	      </tr>   
  </tbody>
</table>
</form>
</body>
</html>